package team.se.tms.exception;

import team.se.tms.enums.ResultEnum;

/**
 * 修改失败异常
 *
 * @author johnny
 * @date 2018/11/29
 */
public class UpdateException extends CustomException {
    /**
     * 修改失败异常构造器
     * @throws Exception 异常
     * @create on 2018/11/29 by johnny
     */
    public UpdateException(){
        super(ResultEnum.UPDATE_ERROR.getCode(), ResultEnum.UPDATE_ERROR.getMsg());
    }

    /**
     * 修改失败异常构造器
     *
     * @param msg 错误原因
     * @throws Exception 异常
     * @create on 2018/11/29 by johnny
     */
    public UpdateException(String msg) {
        super(ResultEnum.UPDATE_ERROR.getCode(), ResultEnum.UPDATE_ERROR.getMsg()+"："+msg);
    }
}
